<?php
namespace Catalog\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Product
 *
 * @ORM\Table(name="product")
 * @ORM\Entity
 */
class Product
{
    /**
     * @var integer
     *
     * @ORM\Column(name="product_id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="SEQUENCE")
     * @ORM\SequenceGenerator(sequenceName="product_id_sequence", allocationSize=1, initialValue=1)
     */
    private $productId;

    /**
     * @var string
     *
     * @ORM\Column(name="code", type="string", length=128, nullable=false)
     */
    private $code;

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_new", type="boolean", nullable=false)
     */
    private $isNew;

    /**
     * @var string
     *
     * @ORM\Column(name="form", type="string", length=64, nullable=true)
     */
    private $form;
    
    /**
     * 
     * @return number The product id
     */
    public function getId() 
    {
    	return $this->productId;
    }

    /**
     *
     * @return number The product code
     */
    public function getCode()
    {
    	return $this->code;
    }

    /**
     * 
     * @return boolean
     */
    public function getIsNew()
    {
    	return $this->isNew;
    }

    /**
     *
     * @return string
     */
    public function getForm()
    {
    	return $this->form;
    }
    
}
